package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 分类属性对象 sys_attribute
 * 
 * @author jjp
 * @date 2020-04-20
 */
@ApiModel("分类属性对象")
public class SysAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性id */
    @ApiModelProperty(name = "属性id")
    private Long attributeId;

    /** $column.columnComment */
    @ApiModelProperty(name = "分类详情id")
    private Long typeId;

    /** 属性名称 */
    @ApiModelProperty(name = "属性名称")
    private String name;

    /** 可选值列表 */
    @ApiModelProperty(name = "可选值列表")
    private String alternative;

    @ApiModelProperty(name = "图片地址")
    private String url;

    /** 排序 */
    @ApiModelProperty(name = "排序")
    private Long sort;

    /** $column.columnComment */
    private String delFlag;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public void setAttributeId(Long attributeId)
    {
        this.attributeId = attributeId;
    }

    public Long getAttributeId() 
    {
        return attributeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAlternative(String alternative) 
    {
        this.alternative = alternative;
    }

    public String getAlternative() 
    {
        return alternative;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return "SysAttribute{" +
                "attributeId=" + attributeId +
                ", typeId=" + typeId +
                ", name='" + name + '\'' +
                ", alternative='" + alternative + '\'' +
                ", sort=" + sort +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
